FROM openjdk:11.0-jdk

WORKDIR /opt/gateway
COPY ./build/libs/api-gateway-1.1.jar /opt/gateway/api-gateway.jar
ENV log.path /opt/gateway/logs
ENV NACOS nacos
ENV NACOS_PORT 8848
VOLUME ["/opt/gateway"]
EXPOSE 8800
ENTRYPOINT ["java", "-jar", "/opt/gateway/api-gateway.jar"]
